package cn.edu.scau.cmi.zenglinghong.client;

import java.util.Objects;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class HibernateClient extends Application {
	
	public static void main(String[] args) {
		launch(args);
	}

	public static void init(Stage primaryStage) throws Exception{
		FXMLLoader fxmlLoader = new FXMLLoader();
        Parent root = fxmlLoader.load(Objects.requireNonNull(
        		HibernateClient.class.getClassLoader().getResourceAsStream(
                        "cn/edu/scau/cmi/zenglinghong/client/fx/Hibernate.fxml")));
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();
	}
	
	@Override
	public void start(Stage primaryStage) throws Exception {
		init(primaryStage);
	}
	
}